<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="../../vuejs/vue.js"></script>
<div id="app">
   <p>
       <input type="text" v-model="message" >
   </p>
    <p>
        <button v-on:click="greet">Greet</button>
    </p>
   <p>
       <button v-on:click="say('hi')">Hi</button>
   </p>

</div>
<script>
    var vm=new Vue({
        el:"#app",
        data:{
            message: 'Hello, Vue.js!'
        },
        methods:{
            greet:function () {
                alert(this.message);
            },
            say:function (e) {
                alert(e);
            }
        }
    })
</script>
</body>
</html>